package com.zhongxin.wymovieticketentity;

import java.io.Serializable;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import android.R.integer;
import android.R.string;
import android.util.Log;

public class MovieDetail extends HotMovies implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 影片详情logo
	 */
	private String logo;
	/**
	 * 影片介绍
	 */
	private String description;
	/**
	 * 剧照的地址集合
	 */
	private String[] stillsList;

	public void parseJson(JSONObject json) throws JSONException {
		if (json != null) {
			logo = json.getString("logo");
			description = json.getString("description");
			JSONArray array = json.getJSONArray("stillsList");
			for (int i = 0; i < array.length(); i++) {
				JSONObject object = array.getJSONObject(i);
				for (int j = 0; j < array.length(); j++) {
					stillsList = new String[array.length()];
					stillsList[j] = object.getString("logo");
					Log.i("-----MovieDetail", "------" + stillsList[j]);
				}

			}
		}
	}

	public MovieDetail() {
		// TODO Auto-generated constructor stub

	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String[] getLogos() {
		return stillsList;
	}

	public void setLogos(String[] logos) {
		this.stillsList = logos;
	}

}
